/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.webos.java.base.fs;

/**
 *
 * @author Kostya
 */
public class FileDescriptor {


    private boolean childrenAllowed = true;
    private String id = null;
    private String name = null;
    private FileProvider provider = null;
    private String type = null;
    private boolean editable = true;
//    private boolean allowCreate = true;
    private boolean removable = true;
    private String owner = null;
    private FileType[] allowedFileTypes = {};
    private FileDescriptor parentFile = null;
    private String icon = "";
    private String object = null;

    public FileDescriptor() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public FileProvider getProvider() {
        return provider;
    }

    public void setProvider(FileProvider provider) {
        this.provider = provider;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isEditable() {
        return editable;
    }

    public void setEditable(boolean editable) {
        this.editable = editable;
    }

    public boolean isRemovable() {
        return removable;
    }

    public void setRemovable(boolean removable) {
        this.removable = removable;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public FileType[] getAllowedFileTypes() {
        return allowedFileTypes;
    }

    public void setAllowedFileTypes(FileType[] allowedFileTypes) {
        this.allowedFileTypes = allowedFileTypes;
    }

    public FileDescriptor getParentFile() {
        return parentFile;
    }

    public void setParentFile(FileDescriptor parentFile) {
        this.parentFile = parentFile;
    }

    /**
     * @return the childrenAllowed
     */
    public boolean isChildrenAllowed() {
        return childrenAllowed;
    }

    /**
     * @param childrenAllowed the childrenAllowed to set
     */
    public void setChildrenAllowed(boolean childrenAllowed) {
        this.childrenAllowed = childrenAllowed;
    }

    /**
     * @return the icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * @param icon the icon to set
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * @return the object
     */
    public String getObject() {
        return object;
    }

    /**
     * @param object the object to set
     */
    public void setObject(String object) {
        this.object = object;
    }


}
